package com.jokins.admin.ios.user.controller;

import com.jokins.admin.ios.user.param.BookUserSignInParam;
import com.jokins.admin.ios.user.service.BookUserSignInService;
import com.jokins.common.util.ResultData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 〈〉<br>
 *
 * @author Mr.Wang
 * @create 2025/2/13
 */
@RestController
@RequestMapping("/ios/userSignIn")
public class BookUserSignInController {

    @Autowired
    private BookUserSignInService bookUserSignInService;

    @PostMapping("/signIn")
    public ResultData bookUserSignIn(@RequestBody BookUserSignInParam param) {
        Map<String, Object> reMap= bookUserSignInService.bookUserSignIn(param);
        return new ResultData("签到成功，等级可能已更新！",reMap);
    }
}